package com.djz.stuinfomge.util;
public class ByteArrayToHexString {
	public static String process(byte[] bs){
		StringBuilder sbuilder = new StringBuilder();
		for (byte b : bs) {
			//将-128~127 转换为0~255
			int fix = 0;
			if(b <0)
				fix = b +256;
			else
				fix = b;
			String str = Integer.toHexString(fix);
			sbuilder.append(str+" ");
			
		}
		
		return sbuilder.toString();
	}
}
